package com.slz3.business.module.configManagement.conSiteProvince.steward;

import com.slz3.business.module.configManagement.conSiteProvince.domain.ConSiteProvince;
import com.slz3.business.module.configManagement.conSiteProvince.domain.ConSiteProvinceCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class ConSiteProvinceResponse {

    public static Mono<ServerResponse> add(ServerRequest req) {
        return req.bodyToMono(ConSiteProvince.class).flatMap(conSiteProvince ->
                ConSiteProvinceResController.add(req, conSiteProvince)
        );
    }

    public static Mono<ServerResponse> delete(ServerRequest req) {
        return req.bodyToMono(ConSiteProvinceCondition.class).flatMap(conSiteProvinceCondition ->
                ConSiteProvinceResController.delete(req, conSiteProvinceCondition)
        );
    }

    public static Mono<ServerResponse> modify(ServerRequest req) {
        return req.bodyToMono(ConSiteProvince.class).flatMap(conSiteProvince ->
                ConSiteProvinceResController.modify(req, conSiteProvince)
        );
    }


    public static Mono<ServerResponse> list(ServerRequest req) {
        return ConSiteProvinceResController.list(req);
    }

    public static Mono<ServerResponse> info(ServerRequest req) {
        return ConSiteProvinceResController.info(req);
    }

    public static Mono<ServerResponse> choice(ServerRequest req) {
        return ConSiteProvinceResController.choice(req);
    }

    public static Mono<ServerResponse> auditSubmit(ServerRequest req) {
        return req.bodyToMono(ConSiteProvinceCondition.class).flatMap(conSiteProvinceCondition ->
                ConSiteProvinceResController.auditSubmit(req, conSiteProvinceCondition)
        );
    }

    public static Mono<ServerResponse> audit(ServerRequest req) {
        return req.bodyToMono(ConSiteProvinceCondition.class).flatMap(conSiteProvinceCondition ->
                ConSiteProvinceResController.audit(req, conSiteProvinceCondition)
        );
    }

    public static Mono<ServerResponse> auditReject(ServerRequest req) {
        return req.bodyToMono(ConSiteProvinceCondition.class).flatMap(conSiteProvinceCondition ->
                ConSiteProvinceResController.auditReject(req, conSiteProvinceCondition)
        );
    }

    public static Mono<ServerResponse> usingEnable(ServerRequest req) {
        return req.bodyToMono(ConSiteProvinceCondition.class).flatMap(conSiteProvinceCondition ->
                ConSiteProvinceResController.usingEnable(req, conSiteProvinceCondition)
        );
    }

    public static Mono<ServerResponse> usingDisable(ServerRequest req) {
        return req.bodyToMono(ConSiteProvinceCondition.class).flatMap(conSiteProvinceCondition ->
                ConSiteProvinceResController.usingDisable(req, conSiteProvinceCondition)
        );
    }   

}
